package com.workingpub.commons.domain;

import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * 业务领域模型对象基类
 * 
 * @author Kevin(Ping)Tao
 *
 */
@MappedSuperclass
public abstract class AutoIncrementDomainBusiness extends AutoIncrementDomainGeneral implements DomainBusiness<Long> {

	private static final long serialVersionUID = 5559629986241165030L;

	@Column(name = "code")
	protected String code;

	@Column(name = "description")
	protected String description;

	@Column(name = "create_time")
	protected Calendar createTime;

	@Override
	public String toString() {
		return new StringBuilder("id : " + id).append("\tcode : " + code).append("\tname : " + name)
				.append("\tcreateTime : " + createTime).toString();
	}

	@Override
	public String getCode() {
		return code;
	}

	@Override
	public void setCode(String code) {
		this.code = code;
	}

	@Override
	public String getDescription() {
		return description;
	}

	@Override
	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public Calendar getCreateTime() {
		return createTime;
	}

	@Override
	public void setCreateTime(Calendar createTime) {
		this.createTime = createTime;
	}

}
